import os
import json
with open(r'/home/lxy/gaobaodata/gaobao_咨询_分类.jsonl','r',encoding='utf-8') as f:
    with open('/home/lxy/gaobaodata/gaobao.json','w',encoding='utf-8') as o:
        cnt=0
        addcnt=0
        data=[]
        for line in f.readlines():
            print(line)
            cnt+=1
            addFlag=True

            data.append(json.loads(line))
            addcnt+=1

        json.dump(data,o,ensure_ascii=False,allow_nan=False,indent=4)

            
print(cnt,addcnt)